import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export const routes = [
           {
               path: '/',
               meta: {
                   title: '首页',
               },
               component: () => import('@/pages/home'),
           },
           {
               path: '/provide-inject',
               meta: {
                   title: 'Provide/Inject',
               },
               component: () => import('@/pages/provide-inject'),
           },
           {
               path: '/broadcast',
               meta: {
                   title: 'broadcast',
               },
               component: () => import('@/pages/broadcast'),
           },
           {
               path: '/form',
               meta: {
                   title: 'form',
               },
               component: () => import('@/pages/form'),
           },
           {
               path: '/alert',
               meta: {
                   title: 'alert',
               },
               component: () => import('@/pages/alert'),
           },
           {
               path: '/tree',
               meta: {
                   title: 'tree',
               },
               component: () => import('@/pages/tree'),
           },
       ];
const router = new Router({
    routes,
});

export default router;
